<?php
/**
 * 定义常量
 */
define('__URL__', "http://".$_SERVER['SERVER_NAME'].$_SERVER['SCRIPT_NAME']);
define('__ROOT__', substr(__URL__, 0, strripos(__URL__,"/")));
define('__PUBLIC__', __ROOT__.'/public');
define('__APP__', 'App'); // 应用目录名